export interface IPlayer {
    id: number;
    name: string;
    avatar?: string;
}

const players: Array<IPlayer> = [];

export const usePlayerStore = defineStore('player', {
    state: (): { players: Array<IPlayer> } => ({
        players,
    }),
    actions: {
        setPalyers(players: Array<IPlayer>) {
            this.players = players;
        },
    },
});
